package com.briup.cms.dao;

import com.briup.cms.bean.BaseConfig;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ConfigMapper {

    void insert(BaseConfig baseConfig);

    BaseConfig  selectById(Integer id);

    void update(BaseConfig baseConfig);

    int updateStatus(BaseConfig baseConfig);

    //把配置状态变为禁用状态
    void changeConfigStatusToNo();

    int deleteById(Integer id);

    List<BaseConfig> pageQueryAll();

    List<BaseConfig> findConfigByStatus(int s);

}
